package com.ruoyi.baodao.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MFGoodsLinkExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MFGoodsLinkExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAutoidIsNull() {
            addCriterion("autoID is null");
            return (Criteria) this;
        }

        public Criteria andAutoidIsNotNull() {
            addCriterion("autoID is not null");
            return (Criteria) this;
        }

        public Criteria andAutoidEqualTo(Integer value) {
            addCriterion("autoID =", value, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidNotEqualTo(Integer value) {
            addCriterion("autoID <>", value, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidGreaterThan(Integer value) {
            addCriterion("autoID >", value, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidGreaterThanOrEqualTo(Integer value) {
            addCriterion("autoID >=", value, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidLessThan(Integer value) {
            addCriterion("autoID <", value, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidLessThanOrEqualTo(Integer value) {
            addCriterion("autoID <=", value, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidIn(List<Integer> values) {
            addCriterion("autoID in", values, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidNotIn(List<Integer> values) {
            addCriterion("autoID not in", values, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidBetween(Integer value1, Integer value2) {
            addCriterion("autoID between", value1, value2, "autoid");
            return (Criteria) this;
        }

        public Criteria andAutoidNotBetween(Integer value1, Integer value2) {
            addCriterion("autoID not between", value1, value2, "autoid");
            return (Criteria) this;
        }

        public Criteria andShopidIsNull() {
            addCriterion("shopid is null");
            return (Criteria) this;
        }

        public Criteria andShopidIsNotNull() {
            addCriterion("shopid is not null");
            return (Criteria) this;
        }

        public Criteria andShopidEqualTo(String value) {
            addCriterion("shopid =", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotEqualTo(String value) {
            addCriterion("shopid <>", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidGreaterThan(String value) {
            addCriterion("shopid >", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidGreaterThanOrEqualTo(String value) {
            addCriterion("shopid >=", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLessThan(String value) {
            addCriterion("shopid <", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLessThanOrEqualTo(String value) {
            addCriterion("shopid <=", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLike(String value) {
            addCriterion("shopid like", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotLike(String value) {
            addCriterion("shopid not like", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidIn(List<String> values) {
            addCriterion("shopid in", values, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotIn(List<String> values) {
            addCriterion("shopid not in", values, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidBetween(String value1, String value2) {
            addCriterion("shopid between", value1, value2, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotBetween(String value1, String value2) {
            addCriterion("shopid not between", value1, value2, "shopid");
            return (Criteria) this;
        }

        public Criteria andGoodscodeIsNull() {
            addCriterion("goodsCode is null");
            return (Criteria) this;
        }

        public Criteria andGoodscodeIsNotNull() {
            addCriterion("goodsCode is not null");
            return (Criteria) this;
        }

        public Criteria andGoodscodeEqualTo(String value) {
            addCriterion("goodsCode =", value, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeNotEqualTo(String value) {
            addCriterion("goodsCode <>", value, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeGreaterThan(String value) {
            addCriterion("goodsCode >", value, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeGreaterThanOrEqualTo(String value) {
            addCriterion("goodsCode >=", value, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeLessThan(String value) {
            addCriterion("goodsCode <", value, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeLessThanOrEqualTo(String value) {
            addCriterion("goodsCode <=", value, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeLike(String value) {
            addCriterion("goodsCode like", value, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeNotLike(String value) {
            addCriterion("goodsCode not like", value, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeIn(List<String> values) {
            addCriterion("goodsCode in", values, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeNotIn(List<String> values) {
            addCriterion("goodsCode not in", values, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeBetween(String value1, String value2) {
            addCriterion("goodsCode between", value1, value2, "goodscode");
            return (Criteria) this;
        }

        public Criteria andGoodscodeNotBetween(String value1, String value2) {
            addCriterion("goodsCode not between", value1, value2, "goodscode");
            return (Criteria) this;
        }

        public Criteria andShowflagIsNull() {
            addCriterion("showFlag is null");
            return (Criteria) this;
        }

        public Criteria andShowflagIsNotNull() {
            addCriterion("showFlag is not null");
            return (Criteria) this;
        }

        public Criteria andShowflagEqualTo(String value) {
            addCriterion("showFlag =", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagNotEqualTo(String value) {
            addCriterion("showFlag <>", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagGreaterThan(String value) {
            addCriterion("showFlag >", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagGreaterThanOrEqualTo(String value) {
            addCriterion("showFlag >=", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagLessThan(String value) {
            addCriterion("showFlag <", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagLessThanOrEqualTo(String value) {
            addCriterion("showFlag <=", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagLike(String value) {
            addCriterion("showFlag like", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagNotLike(String value) {
            addCriterion("showFlag not like", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagIn(List<String> values) {
            addCriterion("showFlag in", values, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagNotIn(List<String> values) {
            addCriterion("showFlag not in", values, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagBetween(String value1, String value2) {
            addCriterion("showFlag between", value1, value2, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagNotBetween(String value1, String value2) {
            addCriterion("showFlag not between", value1, value2, "showflag");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeIsNull() {
            addCriterion("linkGoodsCode is null");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeIsNotNull() {
            addCriterion("linkGoodsCode is not null");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeEqualTo(String value) {
            addCriterion("linkGoodsCode =", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeNotEqualTo(String value) {
            addCriterion("linkGoodsCode <>", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeGreaterThan(String value) {
            addCriterion("linkGoodsCode >", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeGreaterThanOrEqualTo(String value) {
            addCriterion("linkGoodsCode >=", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeLessThan(String value) {
            addCriterion("linkGoodsCode <", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeLessThanOrEqualTo(String value) {
            addCriterion("linkGoodsCode <=", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeLike(String value) {
            addCriterion("linkGoodsCode like", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeNotLike(String value) {
            addCriterion("linkGoodsCode not like", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeIn(List<String> values) {
            addCriterion("linkGoodsCode in", values, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeNotIn(List<String> values) {
            addCriterion("linkGoodsCode not in", values, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeBetween(String value1, String value2) {
            addCriterion("linkGoodsCode between", value1, value2, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeNotBetween(String value1, String value2) {
            addCriterion("linkGoodsCode not between", value1, value2, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinklabel1IsNull() {
            addCriterion("linkLabel1 is null");
            return (Criteria) this;
        }

        public Criteria andLinklabel1IsNotNull() {
            addCriterion("linkLabel1 is not null");
            return (Criteria) this;
        }

        public Criteria andLinklabel1EqualTo(String value) {
            addCriterion("linkLabel1 =", value, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1NotEqualTo(String value) {
            addCriterion("linkLabel1 <>", value, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1GreaterThan(String value) {
            addCriterion("linkLabel1 >", value, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1GreaterThanOrEqualTo(String value) {
            addCriterion("linkLabel1 >=", value, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1LessThan(String value) {
            addCriterion("linkLabel1 <", value, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1LessThanOrEqualTo(String value) {
            addCriterion("linkLabel1 <=", value, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1Like(String value) {
            addCriterion("linkLabel1 like", value, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1NotLike(String value) {
            addCriterion("linkLabel1 not like", value, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1In(List<String> values) {
            addCriterion("linkLabel1 in", values, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1NotIn(List<String> values) {
            addCriterion("linkLabel1 not in", values, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1Between(String value1, String value2) {
            addCriterion("linkLabel1 between", value1, value2, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel1NotBetween(String value1, String value2) {
            addCriterion("linkLabel1 not between", value1, value2, "linklabel1");
            return (Criteria) this;
        }

        public Criteria andLinklabel2IsNull() {
            addCriterion("linkLabel2 is null");
            return (Criteria) this;
        }

        public Criteria andLinklabel2IsNotNull() {
            addCriterion("linkLabel2 is not null");
            return (Criteria) this;
        }

        public Criteria andLinklabel2EqualTo(String value) {
            addCriterion("linkLabel2 =", value, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2NotEqualTo(String value) {
            addCriterion("linkLabel2 <>", value, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2GreaterThan(String value) {
            addCriterion("linkLabel2 >", value, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2GreaterThanOrEqualTo(String value) {
            addCriterion("linkLabel2 >=", value, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2LessThan(String value) {
            addCriterion("linkLabel2 <", value, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2LessThanOrEqualTo(String value) {
            addCriterion("linkLabel2 <=", value, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2Like(String value) {
            addCriterion("linkLabel2 like", value, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2NotLike(String value) {
            addCriterion("linkLabel2 not like", value, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2In(List<String> values) {
            addCriterion("linkLabel2 in", values, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2NotIn(List<String> values) {
            addCriterion("linkLabel2 not in", values, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2Between(String value1, String value2) {
            addCriterion("linkLabel2 between", value1, value2, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel2NotBetween(String value1, String value2) {
            addCriterion("linkLabel2 not between", value1, value2, "linklabel2");
            return (Criteria) this;
        }

        public Criteria andLinklabel3IsNull() {
            addCriterion("linkLabel3 is null");
            return (Criteria) this;
        }

        public Criteria andLinklabel3IsNotNull() {
            addCriterion("linkLabel3 is not null");
            return (Criteria) this;
        }

        public Criteria andLinklabel3EqualTo(String value) {
            addCriterion("linkLabel3 =", value, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3NotEqualTo(String value) {
            addCriterion("linkLabel3 <>", value, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3GreaterThan(String value) {
            addCriterion("linkLabel3 >", value, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3GreaterThanOrEqualTo(String value) {
            addCriterion("linkLabel3 >=", value, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3LessThan(String value) {
            addCriterion("linkLabel3 <", value, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3LessThanOrEqualTo(String value) {
            addCriterion("linkLabel3 <=", value, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3Like(String value) {
            addCriterion("linkLabel3 like", value, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3NotLike(String value) {
            addCriterion("linkLabel3 not like", value, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3In(List<String> values) {
            addCriterion("linkLabel3 in", values, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3NotIn(List<String> values) {
            addCriterion("linkLabel3 not in", values, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3Between(String value1, String value2) {
            addCriterion("linkLabel3 between", value1, value2, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andLinklabel3NotBetween(String value1, String value2) {
            addCriterion("linkLabel3 not between", value1, value2, "linklabel3");
            return (Criteria) this;
        }

        public Criteria andAddtimeIsNull() {
            addCriterion("addTime is null");
            return (Criteria) this;
        }

        public Criteria andAddtimeIsNotNull() {
            addCriterion("addTime is not null");
            return (Criteria) this;
        }

        public Criteria andAddtimeEqualTo(Date value) {
            addCriterion("addTime =", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotEqualTo(Date value) {
            addCriterion("addTime <>", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeGreaterThan(Date value) {
            addCriterion("addTime >", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("addTime >=", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeLessThan(Date value) {
            addCriterion("addTime <", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeLessThanOrEqualTo(Date value) {
            addCriterion("addTime <=", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeIn(List<Date> values) {
            addCriterion("addTime in", values, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotIn(List<Date> values) {
            addCriterion("addTime not in", values, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeBetween(Date value1, Date value2) {
            addCriterion("addTime between", value1, value2, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotBetween(Date value1, Date value2) {
            addCriterion("addTime not between", value1, value2, "addtime");
            return (Criteria) this;
        }

        public Criteria andUsercodeIsNull() {
            addCriterion("userCode is null");
            return (Criteria) this;
        }

        public Criteria andUsercodeIsNotNull() {
            addCriterion("userCode is not null");
            return (Criteria) this;
        }

        public Criteria andUsercodeEqualTo(String value) {
            addCriterion("userCode =", value, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeNotEqualTo(String value) {
            addCriterion("userCode <>", value, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeGreaterThan(String value) {
            addCriterion("userCode >", value, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeGreaterThanOrEqualTo(String value) {
            addCriterion("userCode >=", value, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeLessThan(String value) {
            addCriterion("userCode <", value, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeLessThanOrEqualTo(String value) {
            addCriterion("userCode <=", value, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeLike(String value) {
            addCriterion("userCode like", value, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeNotLike(String value) {
            addCriterion("userCode not like", value, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeIn(List<String> values) {
            addCriterion("userCode in", values, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeNotIn(List<String> values) {
            addCriterion("userCode not in", values, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeBetween(String value1, String value2) {
            addCriterion("userCode between", value1, value2, "usercode");
            return (Criteria) this;
        }

        public Criteria andUsercodeNotBetween(String value1, String value2) {
            addCriterion("userCode not between", value1, value2, "usercode");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}